<!-- 上机三 -->
<template>
  <div id="app">
    <router-link to="/">首页</router-link>
    <router-link to="/list">列表</router-link>
    <router-view/>
  </div>
</template>

<script>
export default {
  name: 'App'
}
</script>

<style>
#app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #2c3e50;
  margin-left: 100px;
  margin-top: 40px;
}
a{
  text-decoration: none;
  color: #333;
}
</style>



<!-- 上机二 -->
<!-- <template>/* 
 <div id="app" class="container">
        <nav class="navbar navbar-default">
            <div class="container-fluid">
                <div class="navbar-header">
                    <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
                        <span class="sr-only">Toggle navigation</span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>
                    <a class="navbar-brand" href="javascript:;">云题库</a>
                </div>
                <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                    <ul class="nav navbar-nav">
                        <li>
                            <router-link to="/foo">首页</router-link>
                        </li>
                        <li>
                            <router-link to="/bar">关于我们</router-link>
                        </li>
                        <li class="dropdown">
                            <router-link to="/user" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">账户中心 <span class="caret"></span></router-link>
                            <ul class="dropdown-menu">
                                <li>
                                    <router-link to="/user/pwd">密码管理</router-link>
                                </li>
                            </ul>
                        </li>
                    </ul>
                </div>
            </div>
        </nav>
        <button class="btn btn-primary" @click="backHandler">后退</button>
        <button class="btn btn-primary" @click="forwardHandler">前进</button>
        <button class="btn btn-primary" @click="goHandler">跳步-2</button>
        <button class="btn btn-primary" @click="pushHandler">push</button>
        <button class="btn btn-primary" @click="replaceHandler">replace</button>
        <router-view></router-view>
    </div>
</template>

<script>
import '../js/bootstrap.min.js'
export default {
  name: 'App',
   methods: {
            backHandler() {
                this.$router.go(-1);
            },
            forwardHandler() {
                this.$router.go(1);
            },
            goHandler() {
                this.$router.go(-2);
                // this.$router.go(1);
                // this.$router.go(2);
            },
            pushHandler() {
                // 字符串用法
                this.$router.push("/bar");
                // 对象用法（用这种方法写的话就更加灵活，你可以传更多的参数）
                // this.$router.push({ path: "/bar" });
                // this.$router.push({ path: "/bar", query: { info: "new" } });
            },
            replaceHandler() {
                // 字符串用法
                this.$router.replace("/bar");
                // 对象用法（用这种方法写的话就更加灵活，你可以传更多的参数）
                // this.$router.replace({ path: "/bar" });
                // this.$router.replace({ path: "/bar", query: { info: "new" } });
            }
        }
}
</script>

<style>
@import '../css/bootstrap.min.css'

</style> */ -->


/*
上机一
<!-- <template> */
/*  <div class="container">
    <nav class="navbar navbar-default">
      <div class="container-fluid">
        <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
          <ul class="nav navbar-nav">
            <li>
              <router-link to="/foo">首页</router-link>
            </li>
            <li>
              <router-link to="/bar">关于我们</router-link>
            </li>
            <li class="dropdown">
              <router-link to="user" class="dropdown" data-toggle="dropdown" role="button" aria-expanded="false">
                账户中心<span class="caret"></span>
              </router-link>

              <ul class="dropdown-menu">
                <li><router-link to="/user/pwd">密码管理</router-link></li>
              </ul>
            </li>
            <li>
              <router-link to="/login">登录</router-link>
            </li>
          </ul>
        </div>
      </div>
    </nav>
    <router-view></router-view>
  </div>
</template>

<script>
import '../js/bootstrap.min.js'
export default {
  name: 'App'
}
</script>

<style>
@import '../css/bootstrap.min.css';
/* #app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
} */
/* </style> *//* */
 /* --> */
